<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewpoit" content="width=device-width,initial-scale=1">
    <meta name="renderer" content="webkit">
    <title>毕业论文选题系统-修改密码</title>
    <link rel="stylesheet" href="css/font-awesome.css">
    <link rel="stylesheet" href="css/plugins/iCheck/custom.css">
    <link rel="stylesheet" href="css/animate.css">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <!-- 全局js -->
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <!-- 自定义js -->
    <script src="js/content.js"></script>
    <script type="text/javascript">
    $(function(){
    	//校验密码修改
    	$("#fm").submit(function(){
    		if($("#newPwd").val()==""){//校验新密码
    			alert("新密码不能为空");
    			return false;
    		}else if($("#cfPwd").val()==""){//校验确认密码
    			alert("确认密码不能为空");
    			return false;
    		}else if($("#newPwd").val()!=$("#cfPwd").val()){//校验新密码和确认密码是否一致
    			alert("两次密码不一致");
    			return false;
    		}else{
    			return true;
    		}
    	})
    })
    </script>
</head>
<body>
<body class="gray-bg">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>修改密码</h5>
                </div>
                <div class="ibox-content">
                    <form action="user" method="post" class="form-horizontal" id="fm" target="_top">
                    <input type="hidden" name="oper" value="pwd">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">新密码</label>
                            <div class="col-sm-4">
                                <input type="password" class="form-control" name="newPwd" id="newPwd">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">确认密码</label>
                            <div class="col-sm-4">
                                <input type="password" class="form-control" name="" id="cfPwd">
                            </div>
                        </div>
                        <br>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">确认保存</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</body>
</html>